package com.hospital.doctor.doctorc.service;


import com.github.pagehelper.PageInfo;
import com.hospital.doctor.doctorc.entity.DrugEntity;
import com.hospital.doctor.doctorc.entity.MedicineEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MedicineService {
    /*
     *分页查询给Page类对象赋值
     * @param currPageNo  当前下标
     * @return  返回Page<MedicineEntity>类型
     */
    public PageInfo<MedicineEntity> MedicinePaging(@Param(value = "doctorId") Integer doctorId, @Param(value = "username") String username, @Param(value = "pageNum") Integer pageNum);

    /**
     * 查询旧密码是否成功！
     *
     * @param doctorid  医生id
     * @param doctorpwd 医生密码
     * @return
     */
    public boolean pwdSelectOK(String doctorid, String doctorpwd, String doctorpwdxin, String doctorPwdOk_pwd);

    Boolean delete(int id);

    Boolean update(MedicineEntity m);

    List<DrugEntity> list();
}
